package com.shunda.ysdgj.model.entity.goods;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shunda.ysdgj.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("ysdgj_goods_category")
@Schema(description = "商品分类")
public class GoodsCategory extends BaseEntity {
    @Schema(description = "父分类ID")
    private Long parentId;

    @Schema(description = "分类名称")
    private String categoryName;

    @Schema(description = "分类logo")
    private String categoryLogo;

    @Schema(description = "排序")
    private Integer categorySort;

    @Schema(description = "是否有子分类")
    @TableField(exist = false)
    private boolean hasChildren;
}
